<include file="__THEME__/header" />
<link href="../Public/css/purview.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/js/kissy/themes/default/editor-min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/js/kissy/neweditor.js"></script>
<include file="../Public/myChannel" />
<div class="contents">
    <include file="../Public/admin_tree" />
    <div class="content_pur_left R">
        <div class="content_pur_left R"> 
        <div>
                <include file="../Public/nav_head" />
                <form name="form1" method="post" action="{:U('portal/Cms/doDeal')}">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%" class="add_tab mt10" >
                        <tr>
                            <td align="right">文章标题：</td>
                            <td><input class="in_put" style="width:300px" name="title" type="text" id="title" size="100" value=""/></td>
                        </tr>
                        <tr>
                            <td align="right">分类：</td>
                            <td><select name="category" id="category" class="in_put_01">
                            <volist name='categoryList' id='vo'>
                               <option value="{$vo.id}">{$vo.name}</option>
                            </volist>
                </select></td>
                        </tr>
                        <tr>
                            <td align="right">作者：</td>
                            <td><input class="in_put" style="width:50px"  name="author" type="text" id="author" value="{$mid|getUserName}" /></td>
                        </tr>						
                         <tr>
                            <td align="right" valign="top">文章内容：</td>
                            <td><textarea name="content" cols="100" rows="30" id="content"  style="width:590px;"></textarea></td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                            <td><input type="hidden" name="channelId" value="{$channelId}" />
                                <input type="hidden" name="id" id="id" value="{$edit.id}" />
                                <input type="submit" class="btn_sea" name="button" id="button" value="提交" /></td>
                        </tr>
                    </table>
                </form>
        </div>
        </div>
    </div>
</div>
<div class="C"></div>
</div>
<include file="__THEME__/footer" />
<script type="text/javascript">
$(document).ready(function(){	
	E	=	KISSY.Editor( "content" );

	var id = "{$edit.id}";
	if(id!=''){
		$('#category').val("{$edit.category}");
		$('#pageTemp').val("{$edit.pageTemp}");
	}
}); 

</script>
